<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .ball {
            --delay: 0s;
            width: 80px;
            height: 80px;
            background-color: pink;
            border-radius: 50%;
            margin-bottom: 50px;
            animation: move 5s var(--delay) linear  forwards paused;
        }

        @keyframes move {
            100% {
                transform: translate(200px);
            }
        }
    </style>
</head>

<body>
    <div class="con">
        <div class="ball"></div>
        <input type="range" min="0" max="1" step="0.01" value="0">
    </div>
</body>
<script>
    let inp = document.querySelector("input");
    let ball = document.querySelector(".ball");

    inp.oninput = () => {
        console.log(inp.value);
        ball.style.setProperty('--delay', `-${inp.value}s`)
    }
</script>

</html>